import { SnakeNamingStrategy } from "typeorm-naming-strategies";
import { TypeOrmModuleOptions } from "@nestjs/typeorm/dist/interfaces/typeorm-options.interface";

export default <TypeOrmModuleOptions>{
  type: 'postgres',
  host: "47.99.115.84",
  port: 5432,
  username: "postgres",
  password: "201postgres9",
  entities: ["dist/src/module/**/*.model.js"],
  uuidExtension: 'pgcrypto',
  database: "woodenears2-service-test",
  namingStrategy: new SnakeNamingStrategy(),
  migrations: ["migration/*.js"],
  cli: {
    migrationsDir: "migration"
  },
}
